package org.mclll.xwangplugin.town.database.mapper;

import org.apache.ibatis.annotations.Param;
import org.mclll.xwangplugin.town.database.domain.TownDO;

import java.util.List;

/**
 * @author: geduo
 * @date: 2023/9/22 16:10
 */
public interface TownMapper {
    /**
     * 查询城镇列表
     *
     * @param town -
     * @return -
     */
    List<TownDO> selectList(@Param("town") TownDO town);

    /**
     * 根据uuid更新信息
     *
     * @param town -
     */
    void updateByUuid(@Param("town") TownDO town);

    /**
     * 插入信息
     *
     * @param town -
     */
    void insert(@Param("town") TownDO town);

    /**
     * 根据uuid查询信息
     *
     * @param townUuid -
     * @return -
     */
    TownDO selectByUuid(String townUuid);

    /**
     * 创建表
     */
    void createTable();
}
